package com.ltmonitor.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ltmonitor.dao.IPlatformInfoDao;
import com.ltmonitor.jt809.entity.PlatformInfo;
import com.ltmonitor.service.IPlatformInfoService;

@Service("platformInfoService")
public class PlatformInfoService extends BaseService<Long, PlatformInfo> implements IPlatformInfoService {

	@Autowired
	private IPlatformInfoDao PlatformInfoDao;
	

	public  PlatformInfo getPlatformInfo(int platformId) {
		
		String hql = "from PlatformInfo where platformId = ? and deleted = false";
		PlatformInfo p = PlatformInfoDao.find(hql,
				platformId);
		return p;
	}
	

}
